using System.Text.RegularExpressions;
using HuaXianQu.ProtoBuffEx.Runtime;
using UnityEngine;

namespace HuaXianQu.ProtoBuffEx.ToolEditor
{
    public class ProtoBasicClassTypeParse : IProtoTypeParse
    {
        public bool ParseType(string type, out string protoType)
        {
            protoType = null;
            string pattern = @"\{([^}]+)\}";
            type = type.Trim();
            MatchCollection matches = Regex.Matches(type, pattern);
            foreach (Match match in matches)
            {
                if (match.Groups.Count > 0)
                {
                    //  string 
                }


                ProtoDebug.LogError(match.Groups[1].Value);
            }

            return false;
        }
    }
}